package com.springframework.t.autowireDemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class RunMain {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("testBean/bean.xml");
        AnimalControl animalControl = context.getBean("animalControl", AnimalControl.class);
        animalControl.listenCall();
    }
}
